﻿namespace Poet.Views
{
    /// <summary>
    /// Interaction logic for Window2.xaml
    /// </summary>
    public partial class TrayView
    {
        public TrayView()
        {
            InitializeComponent();
            NotifyIcon.Click += (o, e) =>
                {
                    TrayMenu.DataContext = DataContext;
                    TrayMenu.IsOpen = !TrayMenu.IsOpen;
                };
        }
    }
}
